package com.yujie.exception;

public class BusinessException extends RuntimeException {
    private EmployeeErrorCodeEnum errorCodeEnum;
    public BusinessException(String msg, EmployeeErrorCodeEnum codeEnum) {
        super(msg);
        this.errorCodeEnum=codeEnum;
    }

    public EmployeeErrorCodeEnum getErrorCodeEnum() {
        return errorCodeEnum;
    }

    public void setErrorCodeEnum(EmployeeErrorCodeEnum errorCodeEnum) {
        this.errorCodeEnum = errorCodeEnum;
    }

}